package restClient

import "github.com/go-resty/resty/v2"

// Post send a rest post request
func Post(url string, body interface{}) (*resty.Response, error) {
	// Create a Resty Client
	client := resty.New()

	return client.R().
		SetHeader("Content-Type", "application/json").
		SetBody(body).
		Post(url)
}
